package com.foogui.faw.oa.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lyon
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("AUDIT_TRAIL")
public class AuditTrailDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 审核类型（eg.配置审核，发布审核）
     */
    @TableField("auditType")
    private String auditType;

    /**
     * 审核授权实体id
     */
    @TableField("audit_approved_id")
    private String auditApprovedId;


    /**
     * 审批状态（提交，一审，二审，终审，驳回）
     */
    @TableField("audit_status")
    private String auditStatus;

    /**
     * 审核时间
     */
    @TableField(value = "audit_time")
    private Date auditTime;

    /**
     * 审核人域账号
     */
    @TableField(value = "submit_code")
    private String submitCode;

    /**
     * 用户名
     */
    @TableField(value = "userName")
    private String userName;

    /**
     * 审核意见
     */
    @TableField(value = "fullMessage")
    private String fullMessage;


}
